package com.maimang.platform.common.entity;

import com.maimang.platform.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件上传表 sys_files
 *
 * @author Rocky
 * @date 2019-01-19
 */
public class SysFiles extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 文件存储ID
	 */
	private Long fileId;
	/**
	 *
	 */
	private String fileName;
	/**
	 * url路径
	 */
	private String url;
	/**
	 * 文字内容
	 */
	private String content;
	/**
	 * 后缀
	 */
	private String suffix;
	/**
	 * 类型（0代表图片 1代表视频）
	 */
	private String type;
	/**
	 * 删除标志（0代表存在 2代表删除）
	 */
	private String delFlag;
	/**
	 * 创建人姓名
	 */
	private String createUserName;
	/**
	 * 修改人名称
	 */
	private String updateUserName;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 修改标识 0 新增 1 修改
	 **/
	private int updateFlag;
	/**
	 * 通道编码
	 **/
	private Long channelCode;

	public Long getFileId() {
		return fileId;
	}

	public void setFileId(Long fileId) {
		this.fileId = fileId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getUpdateFlag() {
		return updateFlag;
	}

	public void setUpdateFlag(int updateFlag) {
		this.updateFlag = updateFlag;
	}

	public Long getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(Long channelCode) {
		this.channelCode = channelCode;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public String getUpdateUserName() {
		return updateUserName;
	}

	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("fileId", getFileId())
				.append("fileName", getFileName())
				.append("url", getUrl())
				.append("content", getContent())
				.append("suffix", getSuffix())
				.append("type", getType())
				.append("delFlag", getDelFlag())
				.append("createUserName", getCreateUserName())
				.append("createUser", getCreateUser())
				.append("createTime", getCreateTime())
				.append("updateUserName", getUpdateUserName())
				.append("updateUser", getUpdateUserName())
				.append("updateTime", getUpdateTime())
				.append("remark", getRemark())
				.toString();
	}
}
